package com.shujia.java.day6;

public class test {
    String str = new String("good");
    char[] ch = { 'a', 'b', 'c' };
    public static void main(String args[]) {
        test ex = new test( );
        ex.change(ex.str, ex.ch);
        System.out.print(ex.str + "and");
        System.out.print(ex.ch);
    }
    public void change(String str, char ch[]) {
        str = "Test ok";
        ch[0] = 'g';
    }
}
